#ifndef __RSSPARSER_H__
# define __RSSPARSER_H__

#include "XMLParser.h"
#include "FluxRSS.h"
#include <list>

class RSSParser : public XMLParser
{
public:
    RSSParser();
    ~RSSParser();

    std::list<FluxRSS*>*    getFlux() {return this->FluxList;}

private:
    void	startElement(XMLNode* node);
    void	endElement(XMLNode* node);
    void	dataElement(std::string data);
    void	parseError(XMLException e);

    std::list<FluxRSS*>* FluxList;
    std::string     currNode;
    FluxRSS         *currFlux;
};

#endif
